<?php 

require_once dirname(__FILE__).'/../bootstrap/Doctrine.php';
 

$t = new lime_test();



$t->comment('->getMyMessages()');
$u1=create_user();
$u1->save();

$u2=create_user();
$u2->save();

$m1=new Message();
$m1->FromUser=$u1;
$m1->ToUser=$u2;
$m1->save();

$t->is($u1->Profile->getMyMessages()->count(),1);
$t->is($u2->Profile->getMyMessages()->count(),1);




